package lists

import (
	"06-GenericsTest/containers"
	"06-GenericsTest/utils"
)

// List 泛型链表接口
type List[T comparable] interface {
	Get(index int) (T, bool)
	Remove(index int)
	Add(values ...T)
	Contains(values ...T) bool
	Sort(comparator utils.Comparator[T])
	Insert(index int, values ...T)
	Set(index int, value T)

	containers.Container[T]
}
